package prj.carmap.mobile.activity;

import prj.carmap.mobile.R;
import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;

/**
 * 对话框
 *
 */
public class DialogView {
	private Dialog dialog;

	public DialogView(Context mActivity) {
		dialog = new Dialog(mActivity, R.style.mask_dialog);
		View popView = (View) LayoutInflater.from(mActivity).inflate(R.layout.dialog_view, null);

		dialog.setContentView(popView);
		dialog.setFeatureDrawableAlpha(Window.FEATURE_OPTIONS_PANEL, 0);
	}

	public void show() {
		dialog.show();
	}

	public void hide() {
		dialog.dismiss();
	}
}
